<?php

namespace App\Services\Api;

use App\Models\Teacher;

class TeacherService
{
    public static function info($param = [])
    {
        return (new Teacher())->with(['store'=>function($query){
            $query->select('id', 'store_name', 'store_address');
        }])->where('id', $param['teacher_id'])->first();
    }
}
